package com.framework.workflow.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author zzg
 */
@Data
@ApiModel(value = "StartWfParam", description = "启动任务参数")
public class StartParam implements Serializable {
    @NotNull
    @ApiModelProperty(value = "关联的业务编号(必传)", required = true)
    private String businessId;

    @NotNull
    @ApiModelProperty(value = "流程定义key(必传)", required = true)
    private String procDefKey;

    @ApiModelProperty(value = "下一环节处理人集合")
    private List<String> selectAssigneeList;

    @ApiModelProperty(value = "是否自动完成第一个节点", notes = "默认为是")
    private boolean autoCompleteFirstTask = true;

    @ApiModelProperty(value = "其他参数")
    private Map<String, Object> attribute = new HashMap<>(16);
}
